import '../../services/wp_http.dart';
import '../http_head.dart';

class PlanApi {
  ///获取我的学习计划列表
  static Future<Map<String, dynamic>> getMyStudyPlanListApi(data) async {
    var res = await WPHttpService.to.post(
      "${HttpHead.getHttpHead()}/plStudyPlan/getMyStudyPlanList",
      data: data,
    );
    var aa = res.data;
    return aa;
  }

  ///
  static Future<Map<String, dynamic>> getPlStudyPlanVideoListApi(data) async {
    var res = await WPHttpService.to.post(
      "${HttpHead.getHttpHead()}/plStudyPlanVideo/getPlStudyPlanVideoList",
      data: data,
    );
    var aa = res.data;
    return aa;
  }

  ///计划的执行时间
  static Future<Map<String, dynamic>> getPlStudyScheduleListApi(data) async {
    var res = await WPHttpService.to.post(
      "${HttpHead.getHttpHead()}/plStudySchedule/getPlStudyScheduleList",
      data: data,
    );
    var aa = res.data;
    return aa;
  }

  ///计划的执行时间
  static Future<Map<String, dynamic>> checkAudioPlayApi(params) async {
    var res = await WPHttpService.to.get(
      "${HttpHead.getHttpHead()}/plStudySchedule/checkAudioPlay",
      params: params,
    );
    var aa = res.data;
    return aa;
  }
}
